import { httpRequest } from "@/utils/https.js"
import {baseUrl} from "@/utils/basic.js"
//资讯列表
export const newsList = (page,pagesize,keyword) =>
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=indexAllNewsList', {
        page,
		pagesize,
        keyword
	},'post')
//资讯列表其他数据
export const IndexNews = () =>
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=otherListByIndexNews', {
	},'post')
//资讯详情
export const newsDetails = (id) =>
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=newsDetails', {
        id
	},'post')